<template lang="pug">
    div
        button(@click="addOne") 添加
        button(@click="getOrderLst") 获取列表
        button(@click="updateOrder") 更新
</template>

<script>
import {orderService} from "@/service/OrderService"

export default {
    data(){
        return {

        }
    },
    methods:{
        async addOne(){
            await orderService.addOrder()
            alert("调用成功")
        },
        async getOrderLst(){
            let lst = await orderService.getOrderLst()
            alert("调用成功")
        },
        async updateOrder(){
            await orderService.updateOrder()
            alert("调用成功")
        }
    }
}
</script>
